package com.masterclient.app.businessmodule.minemodule.withdraw;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.eoner.baselib.utils.status.StatusBarUtil;
import com.eoner.baselib.widget.navgation.FCNavigationBar;
import com.masterclient.app.R;
import com.masterclient.app.base.FCBusinessActivity;
import com.masterclient.app.businessmodule.settingmodule.auth.contract.PointDrawContract;
import com.masterclient.app.businessmodule.settingmodule.auth.contract.PointDrawContractPresenter;
import com.masterclient.app.businessmodule.minemodule.point.model.PointDrawData;
import butterknife.BindView;
import butterknife.OnClick;

public class WithdrawSuccessActivity extends FCBusinessActivity<PointDrawContractPresenter> implements PointDrawContract.View {

    @BindView(R.id.next)
    TextView next;
    @BindView(R.id.amount_desc)
    TextView amount_desc;

    String amount = "";

    @Override
    protected int requireGetLayoutId() {
        return R.layout.cash_withdraw_success;
    }

    @Override
    protected void requireSetCustomNavigationBar(FCNavigationBar navigationBar) {
        navigationBar.setTitle("申请成功");
    }

    @Override
    protected void requireInitUIAndData(Bundle savedInstanceState) {

        StatusBarUtil.setStatusBarColor(getActivity(), Color.parseColor("#FFFFFF"));
        init();
        //amount_desc.setText("提现" + amount + "元，审核后将每月10与25号打款至您的账户");
        amount_desc.setText(amount);
    }

    private void init() {

        amount = getBundleString("amount");

    }


    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

    }

    @OnClick({R.id.next})
    void onClick(View v) {
        switch (v.getId()) {
            case R.id.next:
                finish();
                break;
        }
    }




    @Override
    public void showData(PointDrawData data) {



    }

    @Override
    public void loadFail(String s) {

    }

    @Override
    public void loadError(String s) {

    }
}
